import Vue from 'vue'
import VueRouter from 'vue-router'

const CarLink = () => import('@/views/linkCar.vue')
const CarCityLink = () => import('@/views/linkCarCity.vue')
const GarbageLink = () => import('@/views/linkGarbage.vue')
const GarbageCompanyLink = () => import('@/views/linkGarbageCompany.vue')
const KitchenLink = () => import('@/views/linkKitchen.vue')
const WorkerLink = () => import('@/views/linkWorker.vue')
const WCLink = () => import('@/views/linkWC.vue')
const GarbageLJSBLink = () => import('@/views/linkGarbageLJSB.vue')
const ServiceCarLink = () => import('@/views/linkServiceCar.vue')

const PageLink = () => import('@/views/linkPage.vue')
Vue.use(VueRouter)

const routes = [
  {
  path: '/',
  name: 'index',
  component: CarLink
},
{
  path: '/home1',
  name: 'home1',
  component: () => import('@/views/GarbageHousehold/home1.vue')
},
{
  path: '/linkPage',
  name: 'linkPage',
  component: PageLink
},
{
  path: '/linkCar',
  name: 'linkCar',
  component: CarLink
},
{
  path: '/linkCarCity',
  name: 'linkCarCity',
  component: CarCityLink
},
{
  path: '/linkGarbage',
  name: 'linkGarbage',
  component: GarbageLink
},
{
  path: '/linkGarbageCompany',
  name: 'linkGarbageCompany',
  component: GarbageCompanyLink
},
{
  path: '/linkKitchen',
  name: 'linkKitchen',
  component: KitchenLink
},
{
  path: '/linkWorker',
  name: 'linkWorker',
  component: WorkerLink
},
{
  path: '/linkWC',
  name: 'linkWC',
  component: WCLink
},
{
  path: '/linkGarbageLJSB',
  name: 'linkGarbageLJSB',
  component: GarbageLJSBLink
},
{
  path: '/linkServiceCar',
  name: 'linkServiceCar',
  component: ServiceCarLink
}]
const router = new VueRouter({
  mode: "hash",
  routes
})

export default router